package com.yb.guigu.pick.minio.upload.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/5/10 12:23
 * FileName: MinioProperties
 * Description:
 */

@ConfigurationProperties(prefix = "guigu.pick.minio")
@Data
@ToString
public class MinioProperties {
    public static final String DEFAULT_ENDPOINT="http://localhost:9000";
    public static final String DEFAULT_ACCESS_KEY="minioadmin";
    public static final String DEFAULT_SECRET_KEY="minioadmin";

    private String endpoint=DEFAULT_ENDPOINT;
    private String accessKey=DEFAULT_ACCESS_KEY;
    private String secretKey=DEFAULT_SECRET_KEY;
    private Bucket fileBucket=new Bucket("DEFAULT");
    private Bucket videoBucket=new Bucket("DEFAULT");

    @Data
    @ToString
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Bucket{
        private String name;
    }
}
